package com.qdxwx.data.service.picture;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.picture.PictureAlbum;
import com.qdxwx.models.picture.PictureAlbumVo;

import java.util.List;

/**
 *
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface PictureAlbumService {

    int insert(PictureAlbum pictureAlbum);

    PictureAlbum get(int id);

    List<PictureAlbum> getList(PictureAlbum pictureAlbum, PageRequest page);

    List<PictureAlbum> getList(int categoryId, int limit);

    int count(PictureAlbum pictureAlbum);

    int update(PictureAlbum pictureAlbum);

    int deleteById(int id);

    //浏览数 +1
    int updateView(int id);

    List<PictureAlbumVo> getListVo(PictureAlbum pictureAlbum, PageRequest page);


    int insertItem(int albumId, int pictureId);

    int countItem(int albumId);

    int deleteItem(int albumId, int pictureId);

    int deleteItemByAlbumId(int albumId);

    int deleteItemByPictureId(int id);

    List<Integer> getAlbumIdsByPictureId(int pictureId);

    PictureAlbum getByPictureId(int id);
}
